﻿@using FCZLM.Core.Models
@using Microsoft.AspNetCore.Http
@{
   var prolist = ViewBag.Product as List<Products>;
    var procategorylist = ViewBag.ProductCategory as List<ProductCategorys>;
    var prourllist = ViewBag.ProductUrl as List<ProductUrls>;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link type="text/css" href="css/css.css" rel="stylesheet" />
<script type="~/text/javascript" src="js/jquery.js"></script>
<script type="~/text/javascript" src="js/js.js"></script>
<script src="~/js/wb.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

     <div class="floorBox">

  <div class="pnt">
   <div class="pntLeft">
    <h2 class="Title">所有商品分类</h2>
    <ul class="InPorNav">
                 @foreach (var item in procategorylist)
              {
                  if(@item.Id<1006){
                  <li><a href="/Product2/index/@item.Id">@item.Name</a></li>
                  }
              }
              
    </ul><!--InPorNav/-->
   </div><!--pntLeft/-->
   <div class="pntRight">
    <ul class="nav">
     <li class="navCur"><a href="/home/index">商城首页</a></li>
     <li><a href="/Product/index">商品中心</a></li>
     <li><a href="/news/index">新闻中心</a></li>
     <li>  @if(@Context.Session.GetString(key:"user")==null){
							 <a href="/login/index">用户中心</a>
						}else{
							
							 <a href="/user/index">用户中心</a>
							
						}   </li>
     <li><a href="/contact/index">联系我们</a></li>
    </ul><!--nav/-->
    </div>
   <div class="contRight">
    <div class="frProList">         
             @foreach(var item in prolist){
                  @foreach(var img in prourllist){
                        @foreach (var fenglei in procategorylist)
                        {
                            if (@item.Id == @img.ProductId)
                            { if (@item.ProductCategoryId == @fenglei.Id)
                            {
                                if(@fenglei.Name=="黑天鹅"){
                               <dl>
                                    <dt>

                                        <a href="#"><img src="@img.PicUrl" width="132" height="129" /></a>
                                    </dt>
                                    <dd>@item.Name &nbsp;</dd>
                                    <dd class="cheng">￥@item.Price/袋 <span>￥15.00</span></dd>
                                    </dl>       
                                }
                            }
                            }
                            }
                    }
                    }
                               
                           
        
      <div class="clears">
            
      </div>
     </div> <div class="contRight">
     </div><!--frProList-->
   </div><!--contRight/-->
   <div class="clears"></div>
  </div><!--cont/-->
  </div>
</body>
</html>
